package com.warrior.gathercommon.constants;

/**
 * @ClassName: CommonStatus
 * @Description: (常量类)
 * @author xujian
 * @date 2017年11月3日
 */
public final class CommonStatus {

    public final static String CONSTANT_COMPUTER_SYSYTEM = "computersystem";

    /********************** CPU相关 **********************/
    public final static String CONSTANT_CENTRAL_PROCESSOR = "centralprocessor";
    public final static String CONSTANT_CENTRAL_PROCESSOR_INFO= "info";
    public final static String CONSTANT_CENTRAL_PROCESSOR_NUM= "logicalProcessorCount";
    public final static String CONSTANT_CENTRAL_PROCESSOR_SYSTEM_USE= "systemUsed";
    public final static String CONSTANT_CENTRAL_PROCESSOR_USER_USE= "userUsed";
    public final static String CONSTANT_CENTRAL_PROCESSOR_ALL_USE= "allUsed";
    public final static String CONSTANT_CENTRAL_PROCESSOR_IO_WAIT= "ioWait";

    /********************** 网卡采集相关常量 **********************/
    public final static String CONSTANT_NETWORK_IF = "networkif";
    public final static String CONSTANT_NETWORK_IF_INFO = "info";
    public final static String CONSTANT_NETWORK_IF_BYTESSENT = "bytesSent";
    public final static String CONSTANT_NETWORK_IF_BYTESRECV = "bytesRecv";


    /********************** 操作系统采集相关常量 **********************/
    public final static String CONSTANT_OPERATIONG_SYSTEM = "operatingsystem";
    public final static String CONSTANT_OPERATIONG_OPERATING = "operatingSystem";
    public final static String CONSTANT_OPERATIONG_SYSTEM_PROCESS_COUNT = "processCount";
    public final static String CONSTANT_OPERATIONG_SYSTEM_SYSTEMUPTIME = "systemUptime";
    public final static String CONSTANT_OPERATIONG_SYSTEM_BOOTTIME = "systemBootTime";

    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_ESTABLISHED = "tcpv4Established";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_ACTIVE = "tcpv4Active";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_PASSIVE = "tcpv4Passive";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_FAILURES = "tcpv4Failures";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_RESET = "tcpv4Reset";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_SENT = "tcpv4Sent";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_RECEIVED = "tcpv4Received";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_RETRANSMITTED = "tcpv4Retransmitted";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_INERRORS = "tcpv4Inerrors";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV4_OUTRESETS = "tcpv4Outresets";

    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_ESTABLISHED = "tcpv6Established";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_ACTIVE = "tcpv6Active";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_PASSIVE = "tcpv6Passive";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_FAILURES = "tcpv6Failures";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_RESET = "tcpv6Reset";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_SENT = "tcpv6Sent";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_RECEIVED = "tcpv6Received";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_RETRANSMITTED = "tcpv6Retransmitted";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_INERRORS = "tcpv6Inerrors";
    public final static String CONSTANT_OPERATIONG_SYSTEM_TCPV6_OUTRESETS = "tcpv6Outresets";

    /********************** OSProcess采集相关常量 **********************/
    public final static String CONSTANT_OSPROCESS = "osprocess";
    public final static String CONSTANT_OSPROCESS_FILES = "files";

    /********************** 系统文件采集相关常量 **********************/
    public final static String CONSTANT_FILESYSTEM = "filesystem";
    public final static String CONSTANT_FILESYSTEM_FILES = "maxfile";
    public final static String CONSTANT_FILESYSTEM_TOTAL = "totalSpace";
    public final static String CONSTANT_FILESYSTEM_FREE = "usableSpace";
    public final static String CONSTANT_FILESYSTEM_USED = "usedSpace";

    /********************** 系统内存相关常量 **********************/
    public final static String CONSTANT_GLOBALMEMORY = "globalmemory";
    public final static String CONSTANT_GLOBALMEMORY_TOTAL = "total";
    public final static String CONSTANT_GLOBALMEMORY_AVAILABLE = "available";
    public final static String CONSTANT_GLOBALMEMORY_USED = "used";

    /********************** GPU采集相关常量 **********************/
    public final static String CONSTANT_GPU = "gpu";
    public final static String CONSTANT_GPU_UTILIZATION = "utilization";
    public final static String CONSTANT_GPU_NAME = "name";
    public final static String CONSTANT_GPU_VRAM = "vram";

    public final static String CONSTANT_SUCCESS_MESSAGE = "采集成功";
    /**
     * date类型和string之间的转换格式
     */
    public final static String CONSTANT_DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public final static Integer CONSTANT_GRPC_SERVICE_SEND_MESSAGE = 1;

    public final static Integer CONSTANT_GRPC_SERVICE_RECEVE_CONFIG = 2;

    public final static String CONSTANT_DECIMAL_FORMAT = "#.##%";

    public final static String CONSTANT_JOINTSTR = "$$";


}
